import {Router} from "express";
import ActivityController from "@/controllers/ActivityController";

const router = Router();

// 创建活动
router.post("/create", ActivityController.createActivity);
// 获取活动列表
router.get("/getList", ActivityController.getActivityList);
// 更新活动信息
router.put("/update", ActivityController.updateActivity);
// 删除活动
router.delete("/delete/:activityId", ActivityController.deleteActivity);
// 获取活动信息
router.get("/activityInfos/:activityId", ActivityController.getActivityById);

export default router;
